package com.zhku.goods.feignclient;


import com.zhku.base.model.RestResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "user-api", fallbackFactory = UserClientFactory.class)
@RequestMapping("/user")
public interface UserClient {


    @GetMapping("/userInfo/{id}")
    public RestResponse<TtUser> getUser(@PathVariable("id") String id);
}
